package SchoolSubjects3;

public class Teachers extends SchoolPersonnel { // 教师类

    public Teachers(int number, String name, String sex, Curriculums[] curriculums) {
        super(number, name, sex, curriculums);
    }

    public void openCurriculums(Teachers teacher, int n, Curriculums curriculums1) { // 开课方法
        teacher.getCurriculums()[n] = curriculums1;
        curriculums1.setcurriculumsTeacher(teacher.getname());
        System.out.println(teacher.getname() + " 开设 " + teacher.getCurriculums()[n].getcurriculumsname() + " 课程成功");
    }
}